<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>小试牛刀iot | eternal</title><meta name="keywords" content="iot"><meta name="author" content="eternal,1397239425@qq.com"><meta name="copyright" content="eternal"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta http-equiv="Cache-Control" content="no-transform"><meta http-equiv="Cache-Control" content="no-siteapp"><meta name="description" content="查找方法过于漏洞记录的网站国内外有很多，我只介绍下面两个： 利用cve list查询已经发布的漏洞：https:&#x2F;&#x2F;cve.mitre.org&#x2F;cgi-bin&#x2F;cvekey.cgi?keyword&#x3D;camera   利用exploit database查询，在我看来，exploit database的数据更将丰富清晰，但是漏洞库相比较少。https:&#x2F;&#x2F;www.exploit-db.com&#x2F;exp">
<meta property="og:type" content="article">
<meta property="og:title" content="小试牛刀iot">
<meta property="og:url" content="http://example.com/2020/12/19/%E5%B0%8F%E8%AF%95%E7%89%9B%E5%88%80iot/index.html">
<meta property="og:site_name" content="eternal">
<meta property="og:description" content="查找方法过于漏洞记录的网站国内外有很多，我只介绍下面两个： 利用cve list查询已经发布的漏洞：https:&#x2F;&#x2F;cve.mitre.org&#x2F;cgi-bin&#x2F;cvekey.cgi?keyword&#x3D;camera   利用exploit database查询，在我看来，exploit database的数据更将丰富清晰，但是漏洞库相比较少。https:&#x2F;&#x2F;www.exploit-db.com&#x2F;exp">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg">
<meta property="article:published_time" content="2020-12-19T08:34:47.000Z">
<meta property="article:modified_time" content="2020-12-19T09:43:16.257Z">
<meta property="article:author" content="eternal">
<meta property="article:tag" content="iot">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg"><link rel="shortcut icon" href="/img/ad.jpg"><link rel="canonical" href="http://example.com/2020/12/19/%E5%B0%8F%E8%AF%95%E7%89%9B%E5%88%80iot/"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.css"><script>var GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: undefined,
  translate: undefined,
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '天',
  date_suffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  ClickShowText: {"text":"A,B,C,D,E,F,G","fontSize":"15px"},
  lightbox: 'fancybox',
  Snackbar: undefined,
  justifiedGallery: {
    js: 'https://cdn.jsdelivr.net/npm/justifiedGallery/dist/js/jquery.justifiedGallery.min.js',
    css: 'https://cdn.jsdelivr.net/npm/justifiedGallery/dist/css/justifiedGallery.min.css'
  },
  isPhotoFigcaption: false,
  islazyload: false,
  isanchor: false
};

var saveToLocal = {
  set: function setWithExpiry(key, value, ttl) {
    const now = new Date()
    const expiryDay = ttl * 86400000
    const item = {
      value: value,
      expiry: now.getTime() + expiryDay,
    }
    localStorage.setItem(key, JSON.stringify(item))
  },

  get: function getWithExpiry(key) {
    const itemStr = localStorage.getItem(key)

    if (!itemStr) {
      return undefined
    }
    const item = JSON.parse(itemStr)
    const now = new Date()

    if (now.getTime() > item.expiry) {
      localStorage.removeItem(key)
      return undefined
    }
    return item.value
  }
}</script><script id="config_change">var GLOBAL_CONFIG_SITE = { 
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: false,
  postUpdate: '2020-12-19 17:43:16'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><link rel="stylesheet" href="APlayer.min.css"><div id="aplayer"></div><script src="https://cdn.jsdelivr.net/gh/radium-bit/res@master/live2d/autoload.js" async></script><script src="https://cdn.jsdelivr.net/npm/meting@2/dist/Meting.min.js" async></script><script>(function () {  window.activateDarkMode = function () {
    document.documentElement.setAttribute('data-theme', 'dark')
    if (document.querySelector('meta[name="theme-color"]') !== null) {
      document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
    }
  }
  window.activateLightMode = function () {
    document.documentElement.setAttribute('data-theme', 'light')
   if (document.querySelector('meta[name="theme-color"]') !== null) {
      document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
    }
  }
  const autoChangeMode = 'false'
  const t = saveToLocal.get('theme')
  if (autoChangeMode === '1') {
    const isDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches
    const isLightMode = window.matchMedia('(prefers-color-scheme: light)').matches
    const isNotSpecified = window.matchMedia('(prefers-color-scheme: no-preference)').matches
    const hasNoSupport = !isDarkMode && !isLightMode && !isNotSpecified
    if (t === undefined) {
      if (isLightMode) activateLightMode()
      else if (isDarkMode) activateDarkMode()
      else if (isNotSpecified || hasNoSupport) {
        const now = new Date()
        const hour = now.getHours()
        const isNight = hour <= 6 || hour >= 18
        isNight ? activateDarkMode() : activateLightMode()
      }
      window.matchMedia('(prefers-color-scheme: dark)').addListener(function (e) {
        if (saveToLocal.get('theme') === undefined) {
          e.matches ? activateDarkMode() : activateLightMode()
        }
      })
    } else if (t === 'light') activateLightMode()
    else activateDarkMode()
  } else if (autoChangeMode === '2') {
    const now = new Date()
    const hour = now.getHours()
    const isNight = hour <= 6 || hour >= 18
    if (t === undefined) isNight ? activateDarkMode() : activateLightMode()
    else if (t === 'light') activateLightMode()
    else activateDarkMode()
  } else {
    if (t === 'dark') activateDarkMode()
    else if (t === 'light') activateLightMode()
  }const asideStatus = saveToLocal.get('aside-status')
if (asideStatus !== undefined) {
   if (asideStatus === 'hide') {
     document.documentElement.classList.add('hide-aside')
   } else {
     document.documentElement.classList.remove('hide-aside')
   }
}})()</script><meta name="generator" content="Hexo 5.2.0"><link rel="alternate" href="/atom.xml" title="eternal" type="application/atom+xml">
</head><body><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="author-avatar"><img class="avatar-img" src="/img/ccc.png" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="site-data"><div class="data-item is-center"><div class="data-item-link"><a href="/archives/"><div class="headline">文章</div><div class="length-num">15</div></a></div></div><div class="data-item is-center"><div class="data-item-link"><a href="/tags/"><div class="headline">标签</div><div class="length-num">8</div></a></div></div><div class="data-item is-center"><div class="data-item-link"><a href="/categories/"><div class="headline">分类</div><div class="length-num">12</div></a></div></div></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 清单</span><i class="fas fa-chevron-down expand"></i></a><ul class="menus_item_child"><li><a class="site-page" href="/music/"><i class="fa-fw fas fa-music"></i><span> Music</span></a></li><li><a class="site-page" href="/photos/"><i class="fa-fw fa fa-camera-retro"></i><span> photos</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/shuoshuo/"><i class="fa-fw fa fa-star"></i><span> 说说</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> Link</span></a></div></div></div></div><div id="body-wrap"><header class="post-bg" id="page-header" style="background-image: url(https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg)"><nav id="nav"><span id="blog_name"><a id="site-name" href="/">eternal</a></span><span id="menus"><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 清单</span><i class="fas fa-chevron-down expand"></i></a><ul class="menus_item_child"><li><a class="site-page" href="/music/"><i class="fa-fw fas fa-music"></i><span> Music</span></a></li><li><a class="site-page" href="/photos/"><i class="fa-fw fa fa-camera-retro"></i><span> photos</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/shuoshuo/"><i class="fa-fw fa fa-star"></i><span> 说说</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> Link</span></a></div></div><span class="close" id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></span></span></nav><div id="post-info"><h1 class="post-title">小试牛刀iot</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2020-12-19T08:34:47.000Z" title="发表于 2020-12-19 16:34:47">2020-12-19</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2020-12-19T09:43:16.257Z" title="更新于 2020-12-19 17:43:16">2020-12-19</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/%E5%9B%BA%E4%BB%B6/">固件</a></span></div><div class="meta-secondline"> <span class="post-meta-separator">|</span><span class="post-meta-pv-cv"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">阅读量:</span><span id="busuanzi_value_page_pv"></span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><h1 id="查找方法"><a href="#查找方法" class="headerlink" title="查找方法"></a>查找方法</h1><p>过于漏洞记录的网站国内外有很多，我只介绍下面两个：</p>
<h4 id="利用cve-list查询已经发布的漏洞："><a href="#利用cve-list查询已经发布的漏洞：" class="headerlink" title="利用cve list查询已经发布的漏洞："></a>利用cve list查询已经发布的漏洞：</h4><p><a target="_blank" rel="noopener" href="https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=camera">https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=camera</a></p>
<p><img src="/postimg/iot-1.png"></p>
<p><img src="/postimg/iot-2.png"></p>
<h4 id="利用exploit-database查询，在我看来，exploit-database的数据更将丰富清晰，但是漏洞库相比较少。"><a href="#利用exploit-database查询，在我看来，exploit-database的数据更将丰富清晰，但是漏洞库相比较少。" class="headerlink" title="利用exploit database查询，在我看来，exploit database的数据更将丰富清晰，但是漏洞库相比较少。"></a>利用exploit database查询，在我看来，exploit database的数据更将丰富清晰，但是漏洞库相比较少。</h4><p><a target="_blank" rel="noopener" href="https://www.exploit-db.com/exploits">https://www.exploit-db.com/exploits</a></p>
<p><img src="/postimg/iot-3.png"></p>
<p><img src="/postimg/iot-4.png"></p>
<h4 id="工欲善其事必先利其器"><a href="#工欲善其事必先利其器" class="headerlink" title="工欲善其事必先利其器"></a>工欲善其事必先利其器</h4><p>binwalk（解压固件包、查看固件信息） + ghidra（调试） </p>
<p>下载地址：<a target="_blank" rel="noopener" href="https://pan.baidu.com/s/1IY5YiIXuEmsCvglt0qgrzw">https://pan.baidu.com/s/1IY5YiIXuEmsCvglt0qgrzw</a> 提取码: 78tu </p>
<h3 id="关于固件的下载和说明文档，我的建议是————百度"><a href="#关于固件的下载和说明文档，我的建议是————百度" class="headerlink" title="关于固件的下载和说明文档，我的建议是————百度"></a>关于固件的下载和说明文档，我的建议是————百度</h3><h4 id="下面我来介绍一个例子：D-Link-DIR-645路由器"><a href="#下面我来介绍一个例子：D-Link-DIR-645路由器" class="headerlink" title="下面我来介绍一个例子：D-Link DIR-645路由器"></a>下面我来介绍一个例子：D-Link DIR-645路由器</h4><p><strong>漏洞描述：</strong></p>
<p><img src="/postimg/iot-5.png"></p>
<p><strong>固件下载地址：</strong></p>
<p>链接: <a target="_blank" rel="noopener" href="https://pan.baidu.com/s/1C1koxw1r6uOHzoNAo7PrmQ">https://pan.baidu.com/s/1C1koxw1r6uOHzoNAo7PrmQ</a> 提取码: mta9 </p>
<h3 id="漏洞分析："><a href="#漏洞分析：" class="headerlink" title="漏洞分析："></a>漏洞分析：</h3><p>__查询签名得到架构的信息__（一般是x86，x86_64，i386，amd64，mips，arm）</p>
<p><img src="/postimg/iot-6.png"></p>
<p>（啥都没有，没关系）</p>
<p><strong>解压：</strong></p>
<p><img src="/postimg/iot-7.png"></p>
<p><strong>搜索busy文件查看系统构架：</strong></p>
<p>busybox是嵌入式设备常用（基本上都要用）的工具，它里面集成了很多linux常用命令并且文件本身比较小。这里搜索到了这个文件说明解压成功了（也可以通过tree命令查看目录里面文件多少判断是否解压成功）</p>
<p><img src="/postimg/iot-8.png"></p>
<p><img src="/postimg/iot-9.png"></p>
<p>32位，mips架构</p>
<h3 id="查看漏洞："><a href="#查看漏洞：" class="headerlink" title="查看漏洞："></a>查看漏洞：</h3><p>根据搜索到的文档，我们已经知道漏洞在文件authentication.cgi中，所以我们在解压的固件中直接查找此文件,这是一个公共网关接口，而真正的目标文件是cgibin</p>
<p><img src="/postimg/iot-11.png"></p>
<p>(ll不是linux下一个基本的命令，它实际上是ls -l的一个别名)</p>
<p><img src="/postimg/iot-12.png"></p>
<p>顺便提一下，有时候分析文章是没有给出是哪个文件</p>
<p>一般是httpd文件(如果是http服务的漏洞)</p>
<p><img src="/postimg/iot-10.png"></p>
<p>在找到文件后直接拖入ida7.5（可以打开mips架构文件）中，</p>
<p>寻找authenticatecgi_main函数：</p>
<p><img src="/postimg/iot-13.png"></p>
<p>漏洞所在：read函数没有验证参数nbytes大小，将用户可控的输入内容放置大小固定的栈中局部变量，从而发生溢出！</p>
<p><img src="/postimg/iot-14.png"></p>
<p>具体调试及复现可以参考：</p>
<p><a target="_blank" rel="noopener" href="https://bbs.pediy.com/thread-259274.htm">https://bbs.pediy.com/thread-259274.htm</a></p>
<p><strong>附：</strong></p>
<p>ubuntu的apt及pip自动下载换源脚本</p>
<figure class="highlight bash"><table><tr><td class="code"><pre><span class="line"><span class="meta">#!/bin/bash</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># [*]change ubuntu system sources to aliyun source</span></span><br><span class="line"><span class="comment">#:&lt;&lt;BLOCK</span></span><br><span class="line">sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak.1</span><br><span class="line"></span><br><span class="line">codename=`lsb_release -c | cut -c 11-`</span><br><span class="line"><span class="built_in">echo</span> <span class="string">&quot;codename is <span class="variable">$codename</span>&quot;</span></span><br><span class="line"></span><br><span class="line">sudo touch /etc/apt/sources.list</span><br><span class="line"></span><br><span class="line">sudo <span class="built_in">echo</span> <span class="string">&quot;deb http://mirrors.aliyun.com/ubuntu/ <span class="variable">$codename</span> main restricted universe multiverse&quot;</span> &gt;&gt; /etc/apt/sources.list</span><br><span class="line">sudo <span class="built_in">echo</span> <span class="string">&quot;deb-src http://mirrors.aliyun.com/ubuntu/ <span class="variable">$codename</span> main restricted universe multiverse&quot;</span> &gt;&gt; /etc/apt/sources.list</span><br><span class="line">sudo <span class="built_in">echo</span> <span class="string">&quot;deb http://mirrors.aliyun.com/ubuntu/ <span class="variable">$codename</span>-security main restricted universe multiverse&quot;</span> &gt;&gt; /etc/apt/sources.list</span><br><span class="line">sudo <span class="built_in">echo</span> <span class="string">&quot;deb-src http://mirrors.aliyun.com/ubuntu/ <span class="variable">$codename</span>-security main restricted universe multiverse&quot;</span> &gt;&gt; /etc/apt/sources.list</span><br><span class="line">sudo <span class="built_in">echo</span> <span class="string">&quot;deb http://mirrors.aliyun.com/ubuntu/ <span class="variable">$codename</span>-updates main restricted universe multiverse&quot;</span> &gt;&gt; /etc/apt/sources.list</span><br><span class="line">sudo <span class="built_in">echo</span> <span class="string">&quot;deb-src http://mirrors.aliyun.com/ubuntu/ <span class="variable">$codename</span>-updates main restricted universe multiverse&quot;</span> &gt;&gt; /etc/apt/sources.list</span><br><span class="line">sudo <span class="built_in">echo</span> <span class="string">&quot;deb http://mirrors.aliyun.com/ubuntu/ <span class="variable">$codename</span>-backports main restricted universe multiverse&quot;</span> &gt;&gt; /etc/apt/sources.list</span><br><span class="line">sudo <span class="built_in">echo</span> <span class="string">&quot;deb-src http://mirrors.aliyun.com/ubuntu/ <span class="variable">$codename</span>-backports main restricted universe multiverse&quot;</span> &gt;&gt; /etc/apt/sources.list</span><br><span class="line">sudo <span class="built_in">echo</span> <span class="string">&quot;deb http://mirrors.aliyun.com/ubuntu/ <span class="variable">$codename</span>-proposed main restricted universe multiverse&quot;</span> &gt;&gt; /etc/apt/sources.list</span><br><span class="line">sudo <span class="built_in">echo</span> <span class="string">&quot;deb-src http://mirrors.aliyun.com/ubuntu/ <span class="variable">$codename</span>-proposed main restricted universe multiverse&quot;</span> &gt;&gt; /etc/apt/sources.list</span><br><span class="line"></span><br><span class="line">sudo apt-get update</span><br><span class="line"><span class="comment">#BLOCK</span></span><br><span class="line"><span class="comment"># [*]change pip sources to aliyun source</span></span><br><span class="line"><span class="keyword">if</span> [ ! -d ~/.pip ];<span class="keyword">then</span></span><br><span class="line">    mkdir ~/.pip</span><br><span class="line"><span class="keyword">fi</span></span><br><span class="line">   </span><br><span class="line"><span class="keyword">if</span> [ -f ~/.pip/pip.conf ];</span><br><span class="line"><span class="keyword">then</span></span><br><span class="line">    sudo mv ~/.pip/pip.conf ~/.pip/pip.conf.bak</span><br><span class="line">    sudo touch ~/.pip/pip.conf</span><br><span class="line"><span class="keyword">else</span></span><br><span class="line">    sudo touch ~/.pip/pip.conf</span><br><span class="line"><span class="keyword">fi</span></span><br><span class="line"></span><br><span class="line">sudo <span class="built_in">echo</span> <span class="string">&quot;[global]&quot;</span> &gt;&gt; ~/.pip/pip.conf</span><br><span class="line">sudo <span class="built_in">echo</span> <span class="string">&quot;index-url = https://mirrors.aliyun.com/pypi/simple&quot;</span> &gt;&gt; ~/.pip/pip.conf</span><br></pre></td></tr></table></figure>



<p>binwalk完整下载脚本：</p>
<figure class="highlight bash"><table><tr><td class="code"><pre><span class="line"><span class="meta">#!/bin/bash</span></span><br><span class="line"></span><br><span class="line"><span class="comment">#dependencies</span></span><br><span class="line">sudo apt -y install python-lzma python-crypto</span><br><span class="line">sudo apt -y install libqt4-opengl python-opengl python-qt4 python-qt4-gl python-numpy python-scipy python-pip</span><br><span class="line"></span><br><span class="line">sudo pip install pyqtgraph</span><br><span class="line">sudo pip install capstone</span><br><span class="line"></span><br><span class="line"><span class="comment"># Install standard extraction utilities（必选）  </span></span><br><span class="line">sudo apt -y install mtd-utils gzip bzip2 tar arj lhasa p7zip p7zip-full cabextract cramfsswap squashfs-tools sleuthkit default-jdk lzop srecord</span><br><span class="line"><span class="comment">#Install binwalk</span></span><br><span class="line"><span class="comment">#sudo apt-get install binwalk</span></span><br><span class="line"><span class="built_in">cd</span> binwalk</span><br><span class="line">sudo python setup.py install</span><br><span class="line"><span class="built_in">cd</span> ..</span><br><span class="line"></span><br><span class="line"><span class="comment"># Install sasquatch to extract non-standard SquashFS images（必选）  </span></span><br><span class="line">sudo apt -y install zlib1g-dev liblzma-dev liblzo2-dev  </span><br><span class="line"><span class="built_in">cd</span> sasquatch &amp;&amp; sudo ./build.sh</span><br><span class="line"><span class="built_in">cd</span> ..</span><br><span class="line"></span><br><span class="line"><span class="comment"># Install jefferson to extract JFFS2 file systems（可选）  </span></span><br><span class="line">sudo pip install cstruct  </span><br><span class="line"><span class="built_in">cd</span> jefferson &amp;&amp; sudo python setup.py install</span><br><span class="line"><span class="built_in">cd</span> ..</span><br><span class="line"></span><br><span class="line"><span class="comment"># Install ubi_reader to extract UBIFS file systems（可选）  </span></span><br><span class="line">sudo apt -y install liblzo2-dev python-lzo   </span><br><span class="line"><span class="built_in">cd</span> ubi_reader &amp;&amp; sudo python setup.py install</span><br><span class="line"><span class="built_in">cd</span> ..</span><br><span class="line"><span class="comment"># Install yaffshiv to extract YAFFS file systems（可选）   </span></span><br><span class="line"><span class="built_in">cd</span> yaffshiv &amp;&amp; sudo python setup.py install</span><br><span class="line"><span class="built_in">cd</span> ..</span><br><span class="line"></span><br><span class="line"><span class="comment">#install unstuff (closed source) to extract StuffIt archive files</span></span><br><span class="line">sudo cp stuff/bin/unstuff /usr/<span class="built_in">local</span>/bin/</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="comment">#注意脚本命为install_binwalk.sh</span></span><br><span class="line"><span class="comment">#该脚本目前只适用于Python2.7</span></span><br></pre></td></tr></table></figure>

</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta">文章作者: </span><span class="post-copyright-info"><a href="mailto:1397239425@qq.com">eternal</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta">文章链接: </span><span class="post-copyright-info"><a href="http://example.com/2020/12/19/%E5%B0%8F%E8%AF%95%E7%89%9B%E5%88%80iot/">http://example.com/2020/12/19/小试牛刀iot/</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta">版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来自 <a href="http://example.com" target="_blank">eternal</a>！</span></div></div><div class="tag_share"><div class="post-meta__tag-list"><a class="post-meta__tags" href="/tags/iot/">iot</a></div><div class="post_share"><div class="social-share" data-image="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/social-share.js/dist/css/share.min.css"><script src="https://cdn.jsdelivr.net/npm/social-share.js/dist/js/social-share.min.js" defer></script></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-left"><a href="/2020/12/27/%E7%A1%AC%E4%BB%B6%E5%AE%9E%E8%AE%AD2-1/"><img class="prev-cover" src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" onerror="onerror=null;src='/img/404.jpg'"><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">硬件实训2-1</div></div></a></div><div class="next-post pull-right"><a href="/2020/12/14/%E7%A1%AC%E4%BB%B6%E5%AE%9E%E8%AE%AD%E4%B8%80/"><img class="next-cover" src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" onerror="onerror=null;src='/img/404.jpg'"><div class="pagination-info"><div class="label">下一篇</div><div class="next_info">硬件实训一</div></div></a></div></nav><hr/><div id="post-comment"><div class="comment-head"><div class="comment-headline"><i class="fas fa-comments fa-fw"></i><span> 评论</span></div></div><div class="comment-wrap"><div><div class="vcomment" id="vcomment"></div></div></div></div></div><div class="aside_content" id="aside_content"><div class="card-widget card-info"><div class="card-content"><div class="card-info-avatar is-center"><img class="avatar-img" src="/img/ccc.png" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/><div class="author-info__name">eternal</div><div class="author-info__description">池鱼思故渊</div></div><div class="card-info-data"><div class="card-info-data-item is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">15</div></a></div><div class="card-info-data-item is-center"><a href="/tags/"><div class="headline">标签</div><div class="length-num">8</div></a></div><div class="card-info-data-item is-center"><a href="/categories/"><div class="headline">分类</div><div class="length-num">12</div></a></div></div><a class="button--animated" id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/mRdzut"><i class="fab fa-github"></i><span>mRdzut</span></a><div class="card-info-social-icons is-center"><a class="social-icon" href="https://github.com/mRdzut" target="_blank" title="Github"><i class="fab fa-github"></i></a><a class="social-icon" href="/img/qq.png" target="_blank" title="QQ"><i class="fab fa-qq"></i></a><a class="social-icon" href="/img/wechat.png" target="_blank" title="Wechat"><i class="fab fa-weixin"></i></a></div></div></div><div class="card-widget card-announcement"><div class="card-content"><div class="item-headline"><i class="fas fa-bullhorn card-announcement-animation"></i><span>公告</span></div><div class="announcement_content">欢迎！</div></div></div><div class="sticky_layout"><div class="card-widget card-recent-post"><div class="card-content"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/2021/01/24/%E5%A0%86%E5%A4%8D%E4%B9%A03-double%E2%80%94free/" title="堆复习3-double—free"><img src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="堆复习3-double—free"/></a><div class="content"><a class="title" href="/2021/01/24/%E5%A0%86%E5%A4%8D%E4%B9%A03-double%E2%80%94free/" title="堆复习3-double—free">堆复习3-double—free</a><time datetime="2021-01-24T09:48:32.000Z" title="发表于 2021-01-24 17:48:32">2021-01-24</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2021/01/23/%E5%A0%86%E5%A4%8D%E4%B9%A02-off-by-one%E5%8A%A0unlink/" title="堆复习2-off-by-one加unlink"><img src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="堆复习2-off-by-one加unlink"/></a><div class="content"><a class="title" href="/2021/01/23/%E5%A0%86%E5%A4%8D%E4%B9%A02-off-by-one%E5%8A%A0unlink/" title="堆复习2-off-by-one加unlink">堆复习2-off-by-one加unlink</a><time datetime="2021-01-23T14:16:39.000Z" title="发表于 2021-01-23 22:16:39">2021-01-23</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2021/01/22/%E5%A0%86%E5%A4%8D%E4%B9%A0%E4%B9%8Boff-by-one%E5%92%8Cunlink/" title="堆复习之off_by_one和unlink"><img src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="堆复习之off_by_one和unlink"/></a><div class="content"><a class="title" href="/2021/01/22/%E5%A0%86%E5%A4%8D%E4%B9%A0%E4%B9%8Boff-by-one%E5%92%8Cunlink/" title="堆复习之off_by_one和unlink">堆复习之off_by_one和unlink</a><time datetime="2021-01-22T14:45:11.000Z" title="发表于 2021-01-22 22:45:11">2021-01-22</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2021/01/04/%E8%85%BE%E8%AE%AF%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%88%9D%E4%BD%93%E9%AA%8C/" title="腾讯云服务器初体验"><img src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="腾讯云服务器初体验"/></a><div class="content"><a class="title" href="/2021/01/04/%E8%85%BE%E8%AE%AF%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%88%9D%E4%BD%93%E9%AA%8C/" title="腾讯云服务器初体验">腾讯云服务器初体验</a><time datetime="2021-01-04T13:50:23.000Z" title="发表于 2021-01-04 21:50:23">2021-01-04</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2021/01/03/%E5%88%9D%E6%8E%A2netty/" title="初探netty"><img src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="初探netty"/></a><div class="content"><a class="title" href="/2021/01/03/%E5%88%9D%E6%8E%A2netty/" title="初探netty">初探netty</a><time datetime="2021-01-03T12:36:20.000Z" title="发表于 2021-01-03 20:36:20">2021-01-03</time></div></div></div></div></div></div></div></main><footer id="footer" style="background-image: url(https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg)"><div id="footer-wrap"><div class="copyright">&copy;2020 - 2021 By eternal</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog"></i></button><a id="to_comment" href="#post-comment" title="直达评论"><i class="fas fa-comments"></i></a><button id="go-up" type="button" title="回到顶部"><i class="fas fa-arrow-up"></i></button></div></div><div><script src="https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js"></script><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js"></script><div class="js-pjax"><script>function loadValine () {
  function initValine () {
    let initData = {
      el: '#vcomment',
      appId: '8qhbuvXq0Y4PfhWjKeHvarLj-MdYXbMMI',
      appKey: 'DIzddSk68kLdHdJubMjKe1Nc',
      placeholder: '请多多指教',
      avatar: 'monsterid',
      meta: 'nick,mail'.split(','),
      pageSize: '10',
      lang: 'zh-CN',
      recordIP: true,
      serverURLs: '',
      emojiCDN: '',
      emojiMaps: "",
      enableQQ: false,
      path: window.location.pathname,
    }

    if (true) { 
      initData.requiredFields= ('nick'.split(','))
    }
    
    if (false) {
      const otherData = false
      initData = Object.assign({}, initData, otherData)
    }
    
    const valine = new Valine(initData)
  }

  if (typeof Valine === 'function') initValine() 
  else $.getScript('https://cdn.jsdelivr.net/npm/valine/dist/Valine.min.js', initValine)
}

if ('Valine' === 'Valine' || !false) {
  if (false) btf.loadComment(document.querySelector('#vcomment'),loadValine)
  else setTimeout(() => loadValine(), 0)
} else {
  function loadOtherComment () {
    loadValine()
  }
}</script><script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div><script defer="defer" id="fluttering_ribbon" mobile="true" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/canvas-fluttering-ribbon.min.js"></script><script id="canvas_nest" defer="defer" color="0,0,255" opacity="0.7" zIndex="-1" count="99" mobile="false" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/canvas-nest.min.js"></script><script id="click-show-text" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/click-show-text.min.js" async="async" mobile="false"></script></div><script src="/live2d_models/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"pluginRootPath":"live2d_models/","pluginJsPath":"lib/","pluginModelPath":"assets/","tagMode":false,"debug":false,"model":{"scale":1,"hHeadPos":0.5,"vHeadPos":0.618,"jsonPath":"/live2d_models/assets/assets/haru01.model.json"},"display":{"superSample":2,"width":150,"height":300,"position":"left","hOffset":0,"vOffset":-20},"mobile":{"show":true,"scale":0.5},"react":{"opacityDefault":0.7,"opacityOnHover":0.8},"log":false});</script></body></html>